//************************************************************
//   Name31.java     Java Foundations
//
//  Demonstrates the use of the String class and Math class.
//************************************************************

import java.util.Random;
import java.util.Scanner;

public class Name312
{
    //------------------------------------------------------
    // output one's name.
    //------------------------------------------------------
    public static void main (String[] args)
    {
    Random generator = new Random();
    int num;

    num = generator.nextInt(90) + 10;

    
    Scanner scan = new Scanner (System.in);

    String surname, name, lastname2, firstname;

    System.out.println ("Enter the surname: ");
    surname = scan.nextLine ();

    System.out.println ("Enter the last name: ");
    name = scan.nextLine();
    
    firstname =  surname.substring(0,0);
    lastname2 = name.substring (0,5);

    System.out.println(firstname + num + lastname2);
    }
}
